<?php
	class authQuery extends EngineSupervisor
	{
		private $db;
		
		public function __construct()
		{
			$this-> db = new dataBase();
		}

		/**
		 * Pobieranie moderatora po loginie i po haśle do logowania
		 * @return 
		 */	
		public function getModeratorByLoginAndPassword($login, $pass)
		{
			$sQuery = "SELECT * FROM moderators WHERE moderator_login=? AND moderator_password=?";
			$aResult = $this->db->PdoQuery($sQuery,array($login, $pass));
			return $aResult;  
		}
		
	}
?>